﻿using ReactiveUI;

namespace LS.Screening.UI.Common.Mvvm
{
    public class PageViewModel : ReactiveObject
    {
        int? pageIndex = 1;
        /// <summary>
        /// 页码
        /// </summary>
        public int? PageIndex { get => pageIndex; set => this.RaiseAndSetIfChanged(ref pageIndex, value); }

        int? pageSize = 15;
        /// <summary>
        /// 页容量
        /// </summary>
        public int? PageSize { get => pageSize; set => this.RaiseAndSetIfChanged(ref pageSize, value); }

        int? pageCount = 0;
        /// <summary>
        /// 总页数
        /// </summary>
        public int? PageCount { get => pageCount; set => this.RaiseAndSetIfChanged(ref pageCount, value); }

        int? totalRecordCount = 0;
        /// <summary>
        /// 总记录数
        /// </summary>
        public int? TotalRecordCount { get => totalRecordCount; set => this.RaiseAndSetIfChanged(ref totalRecordCount, value); }
    }
}
